
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>Introduction · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter active" data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    原理解析
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="principle-intro/Runtime_principle.html">
            
                <a href="principle-intro/Runtime_principle.html">
            
                    
                    框架原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="principle-intro/Project_architectured.html">
            
                <a href="principle-intro/Project_architectured.html">
            
                    
                    名词解释
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="principle-intro/Apk_architecture.html">
            
                <a href="principle-intro/Apk_architecture.html">
            
                    
                    APK结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="principle-intro/File_architecture_runtime.html">
            
                <a href="principle-intro/File_architecture_runtime.html">
            
                    
                    运行期文件结构
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="guide-for-use/">
            
                <a href="guide-for-use/">
            
                    
                    接入指引
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="guide-for-use/guide_for_build.html">
            
                <a href="guide-for-use/guide_for_build.html">
            
                    
                    容器接入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="guide-for-use/guide_for_bundle.html">
            
                <a href="guide-for-use/guide_for_bundle.html">
            
                    
                    bundle拆分|新建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="guide-for-use/guide_for_compile.html">
            
                <a href="guide-for-use/guide_for_compile.html">
            
                    
                    awo编译
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="guide-for-use/bundleCommunicate.html">
            
                <a href="guide-for-use/bundleCommunicate.html">
            
                    
                    跨bundle的代码重用和通信
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="update/">
            
                <a href="update/">
            
                    
                    动态部署
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="update/principle.html">
            
                <a href="update/principle.html">
            
                    
                    技术原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="update/dexpatch.html">
            
                <a href="update/dexpatch.html">
            
                    
                    dexpatch
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="update/dexpatch_use_guide.html">
            
                <a href="update/dexpatch_use_guide.html">
            
                    
                    dexpatch使用教程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="update/guide.html">
            
                <a href="update/guide.html">
            
                    
                    一些限制
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" >
            
                <span>
            
                    
                    FAQ
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="faq/question.html">
            
                <a href="faq/question.html">
            
                    
                    问答
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="faq/help.html">
            
                <a href="faq/help.html">
            
                    
                    故障排查
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="faq/variant.html">
            
                <a href="faq/variant.html">
            
                    
                    构建定制包
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="faq/dynamic_failed_help.html">
            
                <a href="faq/dynamic_failed_help.html">
            
                    
                    动态部署失败排查指南
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" >
            
                <span>
            
                    
                    源码分析
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="code_read/atlas_gradle_apk/atlas_atlas_gradle_apk.html">
            
                <a href="code_read/atlas_gradle_apk/atlas_atlas_gradle_apk.html">
            
                    
                    Atlas之Gradle配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="code_read/atlas_start/atlas_start_1.html">
            
                <a href="code_read/atlas_start/atlas_start_1.html">
            
                    
                    Atlas之启动过程(一)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="code_read/atlas_start/atlas_start_2.html">
            
                <a href="code_read/atlas_start/atlas_start_2.html">
            
                    
                    Atlas之启动过程(二)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="code_read/atlas_bundle_load/atlas_bundle_load.html">
            
                <a href="code_read/atlas_bundle_load/atlas_bundle_load.html">
            
                    
                    Atlas之Bundle加载过程
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >Introduction</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="atlas---browse-this-in-english-">Atlas   <a href="en/index.html">Browse this in English </a></h1>
<p><a href="https://render.alipay.com/p/s/taobaonpm_click/atlas_aliyun_logo_click" target="_blank"><img src="https://render.alipay.com/p/s/taobaonpm_click/atlas_aliyun_logo" align="right" style=" width:360px;height:120 px"></a> 
<img src="dingtalk.png" align="left" style=" width:130px;height:130 px">
<br>&#x626B;&#x7801;&#x52A0;&#x5165;atlas&#x9489;&#x9489;&#x4EA4;&#x6D41;&#x7FA4;<br><br><br>
<br>
<br>
<br>
<br></p>
<h2 id="&#x7B80;&#x4ECB;">&#x7B80;&#x4ECB;</h2>
<p>Atlas&#x662F;&#x4F34;&#x968F;&#x7740;&#x624B;&#x673A;&#x6DD8;&#x5B9D;&#x7684;&#x4E0D;&#x65AD;&#x53D1;&#x5C55;&#x800C;&#x884D;&#x751F;&#x51FA;&#x6765;&#x7684;&#x4E00;&#x4E2A;&#x8FD0;&#x884C;&#x4E8E;Android&#x7CFB;&#x7EDF;&#x4E0A;&#x7684;&#x4E00;&#x4E2A;&#x5BB9;&#x5668;&#x5316;&#x6846;&#x67B6;&#xFF0C;&#x6211;&#x4EEC;&#x4E5F;&#x53EB;&#x52A8;&#x6001;&#x7EC4;&#x4EF6;&#x5316;(Dynamic Bundle)&#x6846;&#x67B6;&#x3002;&#x5B83;&#x4E3B;&#x8981;&#x63D0;&#x4F9B;&#x4E86;&#x89E3;&#x8026;&#x5316;&#x3001;&#x7EC4;&#x4EF6;&#x5316;&#x3001;&#x52A8;&#x6001;&#x6027;&#x7684;&#x652F;&#x6301;&#x3002;&#x8986;&#x76D6;&#x4E86;&#x5DE5;&#x7A0B;&#x5E08;&#x7684;&#x5DE5;&#x7A0B;&#x7F16;&#x7801;&#x671F;&#x3001;Apk&#x8FD0;&#x884C;&#x671F;&#x4EE5;&#x53CA;&#x540E;&#x7EED;&#x8FD0;&#x7EF4;&#x671F;&#x7684;&#x5404;&#x79CD;&#x95EE;&#x9898;&#x3002;</p>
<p>Atlas&#x5BF9;app&#x7684;&#x5212;&#x5206;&#x5982;&#x4E0B;&#x56FE;&#x6240;&#x793A;:</p>
<p><img src="img/relation.png" alt=""></p>
<table>
<thead>
<tr>
<th style="text-align:left">&#x62C6;&#x5206;</th>
<th style="text-align:left">&#x5B9A;&#x4F4D;</th>
<th style="text-align:left">&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">host</td>
<td style="text-align:left">&#x57FA;&#x7840;&#x652F;&#x6301;</td>
<td style="text-align:left">&#x5305;&#x542B;&#x72EC;&#x7ACB;&#x7684;&#x4E2D;&#x95F4;&#x4EF6;&#xFF0C;&#x4EE5;&#x53CA;&#x4E00;&#x4E2A;Base&#x7684;&#x5DE5;&#x7A0B;&#xFF0C;&#x91CC;&#x9762;&#x53EF;&#x80FD;&#x5305;&#x542B;&#x5E94;&#x7528;&#x7684;Application&#xFF0C;&#x5E94;&#x7528;icon&#x7B49;&#x57FA;&#x7840;&#x6027;&#x5185;&#x5BB9;</td>
</tr>
<tr>
<td style="text-align:left">bundle</td>
<td style="text-align:left">&#x4E1A;&#x52A1;&#x5C42;&#x57FA;&#x672C;&#x5355;&#x4F4D;</td>
<td style="text-align:left"><strong>&#x8FD0;&#x884C;&#x671F;&#x6309;&#x9700;&#x52A8;&#x6001;&#x52A0;&#x8F7D;</strong>&#x3002;bundle&#x53EF;&#x4EE5;&#x8C03;&#x7528;host&#x7684;&#x4EE3;&#x7801;&#x548C;&#x8D44;&#x6E90;&#xFF0C;&#x540C;&#x65F6;bundle&#x4E4B;&#x95F4;&#x5141;&#x8BB8;&#x5B58;&#x5728;&#x4F9D;&#x8D56;&#x5173;&#x7CFB;&#x3002;</td>
</tr>
</tbody>
</table>
<blockquote>
<p>&#x4E0E;&#x63D2;&#x4EF6;&#x5316;&#x6846;&#x67B6;&#x4E0D;&#x540C;&#x7684;&#x662F;&#xFF0C;Atlas&#x662F;&#x4E00;&#x4E2A;&#x7EC4;&#x4EF6;&#x6846;&#x67B6;&#xFF0C;Atlas&#x4E0D;&#x662F;&#x4E00;&#x4E2A;&#x591A;&#x8FDB;&#x7A0B;&#x7684;&#x6846;&#x67B6;&#xFF0C;&#x4ED6;&#x4E3B;&#x8981;&#x5B8C;&#x6210;&#x7684;&#x5C31;&#x662F;&#x5728;&#x8FD0;&#x884C;&#x73AF;&#x5883;&#x4E2D;&#x6309;&#x9700;&#x5730;&#x53BB;&#x5B8C;&#x6210;&#x5404;&#x4E2A;bundle&#x7684;&#x5B89;&#x88C5;&#xFF0C;&#x52A0;&#x8F7D;&#x7C7B;&#x548C;&#x8D44;&#x6E90;&#x3002;</p>
</blockquote>
<h2 id="atlas&#x63D0;&#x4F9B;&#x54EA;&#x4E9B;&#x529F;&#x80FD;">Atlas&#x63D0;&#x4F9B;&#x54EA;&#x4E9B;&#x529F;&#x80FD;</h2>
<p><strong>&#x4ECE;app&#x7684;&#x5F00;&#x53D1;&#x671F;--&#x8FD0;&#x884C;&#x671F;--&#x4E0A;&#x7EBF;&#x540E;&#x7684;&#x8FD0;&#x7EF4;&#x671F;&#xFF0C;Atlas&#x63D0;&#x4F9B;&#x4E86;&#x4E00;&#x6574;&#x5957;&#x5B8C;&#x6574;&#x7684;&#x652F;&#x6301;</strong></p>
<table>
<thead>
<tr>
<th style="text-align:left">&#x5468;&#x671F;</th>
<th style="text-align:left">&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">&#x5DE5;&#x7A0B;&#x671F;</td>
<td style="text-align:left">&#x5B9E;&#x73B0;host&#x3001;bundle&#x72EC;&#x7ACB;&#x5F00;&#x53D1;&#x3001;&#x8C03;&#x8BD5;&#x7684;&#x529F;&#x80FD;&#xFF0C;bundle&#x72EC;&#x7ACB;</td>
</tr>
<tr>
<td style="text-align:left">&#x8FD0;&#x884C;&#x671F;</td>
<td style="text-align:left">&#x5B9E;&#x73B0;&#x5B8C;&#x6574;&#x7684;&#x7EC4;&#x4EF6;&#x751F;&#x547D;&#x5468;&#x671F;&#x7684;&#x6620;&#x5C04;&#xFF0C;&#x7C7B;&#x9694;&#x79BB;&#x3001;&#x8D44;&#x6E90;&#x5171;&#x4EAB;&#x7B49;&#x673A;&#x5236;</td>
</tr>
<tr>
<td style="text-align:left">&#x8FD0;&#x7EF4;&#x671F;</td>
<td style="text-align:left">&#x589E;&#x91CF;&#x66F4;&#x65B0;&#x4FEE;&#x590D;&#x80FD;&#x529B;&#xFF0C;&#x63D0;&#x4F9B;&#x5BF9;class&#x3001;so&#x4EE5;&#x53CA;&#x8D44;&#x6E90;&#x7684;&#x589E;&#x91CF;&#x66F4;&#x65B0;&#x4FEE;&#x590D;&#x80FD;&#x529B;&#xFF0C;&#x5FEB;&#x901F;&#x5347;&#x7EA7;</td>
</tr>
</tbody>
</table>
<p>&#x4EE5;&#x4E00;&#x4E2A;app&#x7684;&#x5F00;&#x53D1;&#x7684;&#x751F;&#x547D;&#x5468;&#x671F;&#x4E3A;&#x4F8B;&#xFF0C;&#x53C2;&#x89C1; <a href="https://github.com/alibaba/atlas/blob/master/atlas-demo/AtlasDemo" target="_blank">demo</a></p>
<h3 id="&#x5F00;&#x53D1;&#x671F;">&#x5F00;&#x53D1;&#x671F;</h3>
<p>&#x63D0;&#x4F9B;gradle&#x63D2;&#x4EF6;&#xFF0C;&#x7B80;&#x5316;&#x5F00;&#x53D1;&#x8005;&#x63A5;&#x5165;&#x7684;&#x8D1F;&#x62C5;&#x3002;</p>
<p>&#x9700;&#x8981;&#x8BF4;&#x660E;&#x7684;&#x662F;&#xFF0C;gradle&#x63D2;&#x4EF6;&#x4E0D;&#x4F1A;&#x4FB5;&#x5165;&#x6B63;&#x5E38;&#x7684;&#x5F00;&#x53D1;&#x6D41;&#x7A0B;&#xFF0C;host&#x548C;bundle&#x90FD;&#x53EF;&#x4EE5;&#x72EC;&#x7ACB;&#x7684;&#x8FDB;&#x884C;&#x5F00;&#x53D1;&#x548C;&#x8C03;&#x8BD5;&#x3002;</p>
<table>
<thead>
<tr>
<th style="text-align:left">plugin</th>
<th style="text-align:left">&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">com.taobao.atlas</td>
<td style="text-align:left">&#x7528;&#x4E8E;host&#x5DE5;&#x7A0B;&#xFF0C;&#x7528;&#x4E8E;&#x8BBE;&#x7F6E;&#x5BF9;bundle&#x7684;&#x4F9D;&#x8D56;&#x548C;&#x5176;&#x5B83;atlas&#x7684;&#x529F;&#x80FD;</td>
</tr>
<tr>
<td style="text-align:left">com.taobao.atlas.library</td>
<td style="text-align:left">&#x5BF9;&#x5E94;bundle&#x5DE5;&#x7A0B;&#xFF0C;&#x7528;&#x4E8E;&#x5C06;module&#x8F6C;&#x5316;&#x6210;atlas&#x6240;&#x9700;&#x8981;&#x7684;bundle&#x4F9D;&#x8D56;&#xFF0C;&#x4E0D;&#x4F1A;&#x4FB5;&#x5165;&#x6B63;&#x5E38;&#x7684;&#x5F00;&#x53D1;&#x73AF;&#x5883;</td>
</tr>
</tbody>
</table>
<h3 id="&#x8FD0;&#x884C;&#x671F;">&#x8FD0;&#x884C;&#x671F;</h3>
<table>
<thead>
<tr>
<th style="text-align:left">&#x529F;&#x80FD;</th>
<th style="text-align:left">&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">&#x56DB;&#x5927;&#x7EC4;&#x4EF6;&#x652F;&#x6301;</td>
<td style="text-align:left">&#x652F;&#x6301;&#x8FD0;&#x884C;bundle&#x4E2D;&#x7684;&#x56DB;&#x5927;&#x7EC4;&#x4EF6;</td>
</tr>
<tr>
<td style="text-align:left">&#x5171;&#x4EAB;&#x4EE3;&#x7801;&#x8D44;&#x6E90;</td>
<td style="text-align:left">bundle&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x4F7F;&#x7528;host&#x4E2D;&#x7684;&#x4EE3;&#x7801;&#x548C;&#x8D44;&#x6E90;</td>
</tr>
<tr>
<td style="text-align:left">bundle&#x6309;&#x9700;&#x52A0;&#x8F7D;</td>
<td style="text-align:left">&#x4E1A;&#x52A1;&#x9700;&#x8981;&#x65F6;&#xFF0C;&#x624D;&#x4F1A;&#x53BB;&#x52A0;&#x8F7D;&#x5BF9;&#x5E94;bundle&#x4E2D;&#x7684;&#x4EE3;&#x7801;&#x548C;&#x8D44;&#x6E90;</td>
</tr>
<tr>
<td style="text-align:left">&#x8FDC;&#x7A0B;bundle</td>
<td style="text-align:left">&#x51CF;&#x5C11;&#x5305;&#x4F53;&#x79EF;&#x3002;&#x4E0D;&#x5E38;&#x7528;&#x7684;bundle&#x653E;&#x5728;&#x4E91;&#x7AEF;&#xFF0C;&#x9700;&#x8981;&#x65F6;&#x6309;&#x9700;&#x4E0B;&#x8F7D;&#x3002;&#x5F53;&#x7528;&#x6237;&#x8BBE;&#x5907;&#x7A7A;&#x95F4;&#x7D27;&#x5F20;&#x65F6;,&#x53EF;&#x4EE5;&#x6E05;&#x7406;&#x6389;&#x4E00;&#x4E9B;&#x957F;&#x671F;&#x4E0D;&#x7528;&#x7684;&#x7EC4;&#x4EF6;</td>
</tr>
<tr>
<td style="text-align:left">&#x89E3;&#x91CA;&#x6267;&#x884C;</td>
<td style="text-align:left">&#x4E3A;&#x4E86;&#x964D;&#x4F4E;&#x7528;&#x6237;&#x7B49;&#x5F85;&#x65F6;&#x95F4;&#xFF0C;Atlas&#x6846;&#x67B6;&#x5728;dalivk&#x7CFB;&#x7EDF;&#x4E0A;&#x9996;&#x6B21;&#x4F7F;&#x7528;bundle&#x65F6;&#x5173;&#x95ED;&#x4E86;verify&#xFF0C;&#x5728;ART&#x7CFB;&#x7EDF;&#x4E0A;&#x9996;&#x6B21;&#x4F7F;&#x7528;&#x65F6;&#x5173;&#x95ED;&#x4E86;dex2oat&#x8D70;&#x89E3;&#x91CA;&#x6267;&#x884C;&#x3002;&#x540C;&#x65F6;&#x540E;&#x53F0;&#x901A;&#x8FC7;&#x5F02;&#x6B65;&#x4EFB;&#x52A1;&#x8D70;&#x539F;&#x751F;&#x7684;dexopt&#x8FC7;&#x7A0B;&#xFF0C;&#x4E3A;&#x4E0B;&#x6B21;&#x4F7F;&#x7528;&#x505A;&#x597D;&#x51C6;&#x5907;</td>
</tr>
</tbody>
</table>
<h3 id="&#x8FD0;&#x7EF4;&#x671F;">&#x8FD0;&#x7EF4;&#x671F;</h3>
<p><strong>&#x52A8;&#x6001;&#x90E8;&#x7F72;</strong> &#x662F;&#x5BB9;&#x5668;&#x4E00;&#x4E2A;&#x6700;&#x91CD;&#x8981;&#x7684;&#x529F;&#x80FD;&#x3002;&#x57FA;&#x4E8E;&#x6B64;:</p>
<ul>
<li>&#x4E1A;&#x52A1;&#x53EF;&#x4EE5;&#x7075;&#x6D3B;&#x53D1;&#x5E03;&#x81EA;&#x5DF1;&#x7684;&#x9700;&#x6C42;</li>
<li>&#x6709;&#x6545;&#x969C;&#x7684;&#x4E1A;&#x52A1;&#x53EF;&#x4EE5;&#x53CA;&#x65F6;&#x4FEE;&#x590D;&#x6216;&#x8005;&#x56DE;&#x6EDA;</li>
<li>&#x540C;&#x65F6;&#x52A8;&#x6001;&#x90E8;&#x7F72;&#x7684;&#x5FEB;&#x901F;&#x8986;&#x76D6;&#x80FD;&#x529B;&#x5728;&#x7070;&#x5EA6;&#x7B49;&#x573A;&#x666F;&#x4E0B;&#x53EF;&#x4EE5;&#x66F4;&#x5FEB;&#x5730;&#x6536;&#x5230;&#x6240;&#x9700;&#x7684;&#x6548;&#x679C;&#x3002;</li>
</ul>
<table>
<thead>
<tr>
<th style="text-align:left">&#x529F;&#x80FD;</th>
<th style="text-align:left">&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">&#x52A8;&#x6001;&#x90E8;&#x7F72;</td>
<td style="text-align:left">&#x6784;&#x5EFA;&#x65F6;&#x4F1A;&#x4E0E;&#x4E4B;&#x524D;&#x7248;&#x672C;&#x7684;dex&#x8FDB;&#x884C;&#x5B57;&#x8282;&#x7801;&#x7EA7;&#x522B;&#x7684;diff&#xFF0C;&#x751F;&#x6210;tpatch&#x5305;&#x3002;&#x6700;&#x7EC8;&#x4E0B;&#x53D1;&#x5230;&#x7528;&#x6237;&#x624B;&#x673A;&#x7684;patch&#x4EC5;&#x5305;&#x542B;&#x53D8;&#x5316;class&#x7EC4;&#x6210;&#x7684;dex&#x548C;&#x66F4;&#x6539;&#x6216;&#x8005;&#x65B0;&#x589E;&#x7684;&#x8D44;&#x6E90;&#x6587;&#x4EF6;</td>
</tr>
<tr>
<td style="text-align:left">dexpatch</td>
<td style="text-align:left">&#x4EE5;&#x52A8;&#x6001;&#x90E8;&#x7F72;&#x6280;&#x672F;&#x65B9;&#x6848;&#x4E3A;&#x57FA;&#x7840;&#xFF0C;&#x53EF;&#x4EE5;&#x770B;&#x4F5C;&#x662F;&#x52A8;&#x6001;&#x90E8;&#x7F72;&#x7684;&#x5B50;&#x96C6;&#xFF0C;&#x4E13;&#x6CE8;&#x4E8E;&#x5355;&#x4E2A;bundle&#x7684;&#x6545;&#x969C;&#x4FEE;&#x590D;&#x3002;&#x7531;&#x4E8E;&#x505A;&#x7684;&#x4E8B;&#x5C0F;&#x800C;&#x7CBE;&#xFF0C;&#x6240;&#x4EE5;&#x7F16;&#x8BD1;&#x6784;&#x5EFA;&#x901F;&#x5EA6;&#x3001;&#x7EBF;&#x4E0A;&#x751F;&#x6548;&#x901F;&#x5EA6;&#x90FD;&#x662F;&#x8FDC;&#x8FDC;&#x5FEB;&#x4E8E;&#x52A8;&#x6001;&#x90E8;&#x7F72;</td>
</tr>
</tbody>
</table>
<h2 id="&#x5982;&#x4F55;&#x63A5;&#x5165;">&#x5982;&#x4F55;&#x63A5;&#x5165;</h2>
<p>&#x6211;&#x4EEC;&#x6BD4;&#x8F83;&#x503E;&#x5411;&#x4E8E;&#x7528;&#x4E00;&#x4E2A;&#x6BD4;&#x8F83;&#x5E72;&#x51C0;&#x7684;&#x58F3;&#x5B50;&#x5DE5;&#x7A0B;&#x6765;&#x4F5C;&#x4E3A;&#x5BB9;&#x5668;&#x67B6;&#x6784;&#x4E0B;&#x7684;&#x6253;&#x5305;&#x5DE5;&#x7A0B;,&#x79F0;&#x4E4B;&#x4E3A;<strong>main_builder</strong>&#xFF0C;<strong>main_builder</strong>&#x5EFA;&#x8BAE;&#x53EA;&#x5B58;&#x5728;AndroidManifest.xml&#x3001;&#x6784;&#x5EFA;&#x6587;&#x4EF6;&#x53CA;&#x90E8;&#x5206;&#x8D44;&#x6E90;&#x5185;&#x5BB9;&#x3002;</p>
<ul>
<li>manifest&#xFF1A;&#x6587;&#x4EF6;&#x7528;&#x4E8E;&#x5355;&#x72EC;&#x7BA1;&#x7406;apk&#x7684;icon&#xFF0C;&#x7248;&#x672C;&#x53F7;&#xFF0C;versioncode&#x7B49;&#xFF1B;</li>
<li>gradle&#xFF1A;&#x7528;&#x4E8E;&#x914D;&#x7F6E;&#x4E3B;apk&#x7684;&#x4F9D;&#x8D56;&#x53CA;&#x63A7;&#x5236;&#x6784;&#x5EFA;&#x53C2;&#x6570;</li>
</ul>
<p>&#x4EE5; <a href="https://github.com/alibaba/atlas/blob/master/atlas-demo/AtlasDemo" target="_blank">demo</a> &#x4E3A;&#x4F8B;</p>
<ol>
<li><p>&#x5F15;&#x7528;Atlas&#x63D2;&#x4EF6;&#x53CA;&#x4F9D;&#x8D56;&#x4ED3;&#x5E93;&#xFF0C;&#x4FEE;&#x6539;&#x5DE5;&#x7A0B;gradle&#x6587;&#x4EF6;</p>
<pre><code> buildscript {
     repositories { jcenter()}
     dependencies {
         classpath &quot;com.taobao.android:atlasplugin:2.3.3.beta2&quot;
     }
 }
</code></pre></li>
<li><p>bundle&#x63A5;&#x5165;&#xFF0C;&#x4FEE;&#x6539;bundle&#x7684;gradle&#xFF0C;&#x53C2;&#x89C1;<a href="https://github.com/alibaba/atlas/blob/master/atlas-demo/AtlasDemo" target="_blank">demo</a>&#x4E2D;&#x7684;firstbundle&#x914D;&#x7F6E;</p>
<pre><code> apply plugin: &apos;com.taobao.atlas.library&apos;

 atlas {
     //&#x58F0;&#x660E;&#x4E3A;awb &#x5373;bundle&#x5DE5;&#x7A0B;
     bundleConfig { awbBundle true }
 }
</code></pre></li>
<li><p>&#x5BB9;&#x5668;&#x63A5;&#x5165;&#xFF0C;&#x4FEE;&#x6539;app&#x6A21;&#x5757;&#x7684;gradle&#x6587;&#x4EF6;</p>
<pre><code> apply plugin: &apos;com.taobao.atlas.application&apos;
 dependencies {
     //&#x6838;&#x5FC3;sdk
     compile(&apos;com.taobao.android:atlas_core:5.0.0@aar&apos;) {
          transitive = true
      }
      //&#x5982;&#x679C;&#x4E0D;&#x9700;&#x8981;&#x7528;&#x5230;atlas&#x7684;&#x52A8;&#x6001;&#x90E8;&#x7F72;&#x529F;&#x80FD;&#xFF0C;&#x4E0D;&#x9700;&#x8981;&#x4F9D;&#x8D56;atlasupdate
      compile &apos;com.taobao.android:atlasupdate:1.0.8@aar&apos;

      //&#x8BBE;&#x7F6E;bundle&#x4F9D;&#x8D56;
      bundleCompile project(&apos;:firstbundle&apos;)
  }
  atlas {
   atlasEnabled true
   //...
}
</code></pre></li>
</ol>
<p>&#x81F3;&#x6B64;&#xFF0C;&#x63A5;&#x5165;&#x5B8C;&#x6210;&#xFF0C;&#x4E0D;&#x9700;&#x8981;&#x63A5;&#x5165;&#x65B9;&#x8C03;&#x7528;&#x4EFB;&#x4F55;&#x521D;&#x59CB;&#x5316;&#x51FD;&#x6570;&#xFF0C;&#x8BE6;&#x7EC6;&#x7684;&#x6587;&#x6863;&#x53C2; <a href="https://alibaba.github.io/atlas/guide-for-use/guide_for_build.html" target="_blank">&#x63A5;&#x5165;&#x6587;&#x6863;</a>&#xFF0C;</p>
<h2 id="support">Support</h2>
<p>&#x652F;&#x6301;&#x7248;&#x672C; 4.0 to 7.0. </p>
<table>
<thead>
<tr>
<th>Runtime</th>
<th>Android Version</th>
<th>Support</th>
</tr>
</thead>
<tbody>
<tr>
<td>Dalvik</td>
<td>2.2</td>
<td>Not Test</td>
</tr>
<tr>
<td>Dalvik</td>
<td>2.3</td>
<td>Not Test</td>
</tr>
<tr>
<td>Dalvik</td>
<td>3.0</td>
<td>Not Test</td>
</tr>
<tr>
<td>Dalvik</td>
<td>4.0-4.4</td>
<td>Yes</td>
</tr>
<tr>
<td>ART</td>
<td>5.0</td>
<td>Yes</td>
</tr>
<tr>
<td>ART</td>
<td>5.1</td>
<td>Yes</td>
</tr>
<tr>
<td>ART</td>
<td>M</td>
<td>Yes</td>
</tr>
<tr>
<td>ART</td>
<td>N</td>
<td>Yes</td>
</tr>
</tbody>
</table>
<h2 id="&#x5176;&#x5B83;">&#x5176;&#x5B83;</h2>
<ul>
<li><a href="https://alibaba.github.io/atlas/faq/question.html" target="_blank">FAQ</a> </li>
<li><a href="https://alibaba.github.io/atlas/" target="_blank">&#x6587;&#x6863;</a></li>
<li><a href="https://mp.weixin.qq.com/s?__biz=MzAxNDEwNjk5OQ==&amp;mid=2650400348&amp;idx=1&amp;sn=99bc1bce932c5b9000d5b54afa2de70e" target="_blank">Atlas-&#x624B;&#x6DD8;&#x7EC4;&#x4EF6;&#x5316;&#x6846;&#x67B6;&#x7684;&#x524D;&#x4E16;&#x4ECA;&#x751F;&#x548C;&#x672A;&#x6765;&#x7684;&#x8DEF;</a></li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"Introduction","level":"1.1","depth":1,"next":{"title":"原理解析","level":"1.2","depth":1,"ref":"","articles":[{"title":"框架原理","level":"1.2.1","depth":2,"path":"principle-intro/Runtime_principle.md","ref":"principle-intro/Runtime_principle.md","articles":[]},{"title":"名词解释","level":"1.2.2","depth":2,"path":"principle-intro/Project_architectured.md","ref":"principle-intro/Project_architectured.md","articles":[]},{"title":"APK结构","level":"1.2.3","depth":2,"path":"principle-intro/Apk_architecture.md","ref":"principle-intro/Apk_architecture.md","articles":[]},{"title":"运行期文件结构","level":"1.2.4","depth":2,"path":"principle-intro/File_architecture_runtime.md","ref":"principle-intro/File_architecture_runtime.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"README.md","mtime":"2017-11-27T09:41:28.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2017-11-27T10:00:49.012Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

